<?php
include('AgentHandle.php');

$agent = new AgentHandle();

$valuesArray = array(
	"agent_in" => "",
	"agent_password" => "",
	"agent_team" => "1"
	);
	
print_r($agent->agentTimeIn(1));
/*
$valuesArray = array(
	"agent_username" => "aray",
	"agent_password" => "c21f969b5f03d33d43e04f8f136e7682",
	"agent_email" => "aray@yahoo.com",
	"agent_phone" => "1234567",
	"agent_lastname" => "Po",
	"agent_firstname" => "Aray",
	"agent_middlename" => "Ko",
	"agent_gender" => "Male",
	"agent_birthday" => "1987-11-15",
	"agent_permissions" => "3",
	"agent_team" => "1"
	);

include('TransactionHandle.php');

$transaction = new TransactionHandle();

$valuesArray = array(
	"transaction_amountcollected" => "50000",
	"transaction_receipt1" => "AC-1092",
	"transaction_receipt2" => "PN-asdf",
	"transaction_notes2" => "asdfasdfasdfasfs",
	"transaction_dateupdated" => "2009-05-11",
	"transaction_timeupdated" => "1234567"
	);

$transactionId = 7;
print_r($transaction->completeTransaction($valuesArray, $transactionId));
*/

/*

$valuesArray = array(
	"transaction_date" => "2010-04-02",
	"transaction_time" => "22222",
	"transaction_amountexpected" => "15000",
	"transaction_modeofpayment" => "cash",
	"transaction_notes" => "hallo hallo hallo1223123123"
	);
$donationId = 5;

include('TicketHandle.php');

$ticket = new TicketHandle();

print_r($ticket->completeFollowup(1));
*/
/*
$valuesArray = array(
	"followup_date" => "2009-07-07",
	"followup_time" => "1234567",
	"followup_notes" => "pa follow up naman ito oh",
	);

$result = $ticket->addFollowUp($valuesArray, 1, 1, 1);
echo $result;
*/
/*
include('DonationHandle.php');

$donation = new DonationHandle();

$result = $donation->reschedulePickup(8, 43214321);
print_r($result);
*/
/*

$valuesArray = array(
	"ticket_date" => "2009-05-07",
	"ticket_time" => "1234567",
	"ticket_callstatus" => "1",
	"ticket_callpurpose" => "Followup",
	"ticket_donationdenied" => "0",
	"ticket_followupdate" => "",
	"ticket_followuptime" => "",
	"ticket_notes" => "Just made telebabad"
	);
$valuesArray = array(
	"donation_preferredmodeofpayment" => "Check", 
	"donation_recurrenceofpayment" => "Annual", 
	"donation_category" => "Bro. Connon", 
	"donation_amountpledged" => "20000", 
	"donation_amountcollected" => "200", 
	"donation_time" => "1234567", 
	"donation_update" => "233424", 
	"donation_status" => "1", 
	"donation_pickupdate" => "2009-6-7"
	);
$agentId = 1;
$clientId = 1;
$ticketId = 2;

$result = $donation->addNewDonation($valuesArray, $agentId, $clientId, $ticketId);
echo $result;
*/
#
# getClientProfile and addNewClient test #
#
/*
print_r($client->getProfileValues());
$valuesArray = array(
	"client_lastname" => "De La Salle", 
	"client_firstname" => "John", 
	"client_nickname" => "Johnny", 
	"client_middlename" => "Baptiste", 
	"client_gender" => "Male", 
	"client_birthday" => "1765-12-25", 
	"client_batch" => "TheFirst", 
	"client_coursecode" => "AB-EDUC", 
	"client_coursename" => "Education", 
	"client_yeargraduated" => "1969", 
	"client_school" => "Harvard University Recto", 
	"client_company" => "DLSU", 
	"client_position" => "Owner", 
	"client_email" => "john.desalle@delasalle.ph", 
	"client_deceased" => "1", 
	"client_dateofdeath" => "1997-3-19", 
	"client_type" => "4", 
	"client_alumni" => "1"
	);
$id = $client->addNewClient($valuesArray, 1);
echo $id;

$valuesArray = array(
	"client_lastname" => "Beckinsale", 
	"client_firstname" => "Kate", 
	"client_nickname" => "Katie", 
	"client_middlename" => "Rodriguez", 
	"client_gender" => "Female", 
	"client_birthday" => "", 
	"client_batch" => "", 
	"client_coursecode" => "", 
	"client_coursename" => "", 
	"client_yeargraduated" => "", 
	"client_school" => "", 
	"client_company" => "", 
	"client_position" => "", 
	"client_email" => "", 
	"client_deceased" => "", 
	"client_dateofdeath" => "", 
	"client_type" => "2", 
	"client_alumni" => ""
	);
$phoneArray = array(
	"phone_countrycode" => "", 
	"phone_areacode" => "", 
	"phone_number" => "", 
	"phone_type" => "", 
	"phone_priority" => ""
	);
$mobileArray = array(
	"mobile_countrycode" => "", 
	"mobile_provider" => "", 
	"mobile_number" => "", 
	"mobile_priority" => ""
	);
$result = $client->addNewReferral($valuesArray, $phoneArray, $mobileArray, 2, 5);
echo $result;

$result = $client->setMobileNumberValue(3, 'mobile_number', '9111111', 20);
print_r($result);
*/
/*
$valuesArray1 = array(
	"client_lastname" => "Manila", 
	"client_firstname" => "Ateneo", 
	"client_nickname" => "Blue", 
	"client_middlename" => "De", 
	"client_gender" => "Male", 
	"client_birthday" => "", 
	"client_batch" => "", 
	"client_coursecode" => "", 
	"client_coursename" => "", 
	"client_yeargraduated" => "", 
	"client_school" => "", 
	"client_company" => "", 
	"client_position" => "", 
	"client_email" => "", 
	"client_deceased" => "", 
	"client_dateofdeath" => "", 
	"client_type" => "2", 
	"client_alumni" => ""
	);
$phoneArray1 = array(
	"phone_countrycode" => "063", 
	"phone_areacode" => "02", 
	"phone_number" => "7654321", 
	"phone_type" => "Office", 
	"phone_priority" => "2"
	);
$mobileArray1 = array(
	"mobile_countrycode" => "063", 
	"mobile_provider" => "906", 
	"mobile_number" => "4209898", 
	"mobile_priority" => "1"
	);
$valuesArray2 = array(
	"address_street" => "2411 Taft Avenue", 
	"address_city" => "Makati", 
	"address_municipality" => "Bel-Air", 
	"address_province" => "Manila",
	"address_country" => "Philippines",
	"address_zipcode" => "1010",
	"address_type" => "Primary"
	);
*/

?>
